package com.gxa.web_admin.controller.propertycontroller;

import com.gxa.common.R;
import com.gxa.modules.service.propertyservice.EquipmentService;
import io.swagger.annotations.*;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @version 1.0
 * @Author fluoxetine
 * @Date 2022/4/30 23:57
 **/
@RestController
@RequestMapping("/Equipment/CarBarrier")
@Api(value = "车辆道闸设备管理",tags = "门禁设备查询接口API")
@RequiresPermissions("车辆道闸")
public class CarBarrierCotroller {


    @Autowired
    private EquipmentService equipmentService;

    @RequestMapping(value = "/selectVehicle_ramp",method = RequestMethod.GET)
    @ApiOperation(value = "查询车辆道闸设备接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "GET",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "device_name",value = "根据此条件查询设备信息",required = false,dataType = "String",paramType = "query"),
            @ApiImplicitParam(name = "page",value = "当前页码数",required = true,dataType = "String",paramType = "query"),
            @ApiImplicitParam(name = "size",value = "每页显示条数", required = true,dataType = "String",paramType = "query")
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R selectVehicle_ramp()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("查询成功");
        return r;
    }


    @PostMapping("/addVehicle_ramp")
    @ApiOperation(value = "添加车辆道闸设备接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "device_name",value = "根据此条件查询设备信息",required = false,dataType = "String",paramType = "query"),
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R addVehicle_ramp()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("添加成功");
        return r;
    }

    @PostMapping("/deleteVehicle_rampById")
    @ApiOperation(value = "删除车辆道闸设备接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "根据此条件查询设备信息",required = true,dataType = "String",paramType = "query"),
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R deleteVehicle_rampById()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("删除成功");
        return r;
    }

    @GetMapping("/selectRamp_alarm")
    @ApiOperation(value = "查询车辆道闸报警接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page",value = "当前页码数",required = true,dataType = "String",paramType = "query"),
            @ApiImplicitParam(name = "size",value = "每页显示条数", required = true,dataType = "String",paramType = "query")
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R selectRamp_alarm()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("查询成功");
        return r;
    }

    @PostMapping("/addRamp_alarm")
    @ApiOperation(value = "添加车辆道闸报警接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "device_name",value = "根据此条件查询设备信息",required = false,dataType = "String",paramType = "query"),
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R addRamp_alarm()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("添加成功");
        return r;
    }

    @PostMapping("/deleteRamp_alarmById")
    @ApiOperation(value = "删除车辆道闸报警接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "根据此条件查询设备信息",required = true,dataType = "String",paramType = "query"),
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R deleteRamp_alarmById()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("删除成功");
        return r;
    }

    @GetMapping("/selectRamp_patrol")
    @ApiOperation(value = "查询车辆道闸巡查接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page",value = "当前页码数",required = true,dataType = "String",paramType = "query"),
            @ApiImplicitParam(name = "size",value = "每页显示条数", required = true,dataType = "String",paramType = "query")
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R selectRamp_patrol()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("查询成功");
        return r;
    }

    @PostMapping("/addRamp_patrol")
    @ApiOperation(value = "添加车辆道闸运维接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "device_name",value = "根据此条件查询设备信息",required = false,dataType = "String",paramType = "query"),
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R addRamp_patrol()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("添加成功");
        return r;
    }

    @PostMapping("/deleteRamp_patrolById")
    @ApiOperation(value = "删除车辆道闸运维接口" ,notes = "提供当前页码数与每页显示条数",httpMethod = "POST",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "根据此条件查询设备信息",required = true,dataType = "String",paramType = "query"),
    })
    @ApiResponses({
            @ApiResponse(code = 200,message = "请求成功"),
            @ApiResponse(code = 400,message = "参数格式不对"),
            @ApiResponse(code = 404,message = "找不到页面"),
            @ApiResponse(code = 500,message = "后台服务错误")
    })
    public R deleteRamp_patrolById()
    {
        R r = new R();
        r.setCode(200);
        r.setMsg("删除成功");
        return r;
    }

}
